package com.nicy.dream.common;

import javax.servlet.http.HttpServletRequest;

/**
 * @description: token创建和检验service
 * @projectName:dream
 * @see:com.nicy.dream.common
 * @author:NicyYe
 * @createTime:2021/2/19 14:38
 * @version:1.0
 */
public interface TokenService {
    /**
     * 创建token
     * @return
     */
    public String createToken();

    /**
     * 检验token
     * @return
     * @throws Exception
     */
    public boolean checkToken(HttpServletRequest request) throws Exception;
}
